Export Model to SQL/Script File

After finishing your model, you can save structures and relations from the model into a sql or script file.

Navicat Data Modeler provides a step-by-step wizard for you to complete the task:

General Properties

Option

Description

File

Set the location path of the output file.

Model

Choose the model you wish to export.

Schema

Choose the schema you wish to export.

Objects

Choose objects in the model you wish to export.

Advanced Properties

Note: The following options depend on the diagram database type you are chosen and sort in ascending order.

Option

Description

Include auto increment

Include the auto increment values of tables.

Include character set

Include table and field character sets.

Include checks

Include check constraints.

Include collation

Include the collations of tables.

Include Drop SQL

Include drop object SQL statements.

Include Drop With CASCADE

Include drop object SQL statements with the CASCADE option.

Include excludes

Include exclusion constraints.

Include foreign keys

Include the foreign keys of tables.

Include indexes

Include table indexes.

Include primary keys

Include the primary keys of tables.

Include rules

Include rule objects.

Include schema

Qualify object names with the schema name. Otherwise, only object names are included in SQL statements.

Include triggers

Include table triggers.

Include uniques

Include unique constraints.

Server Version

Select the server version for the file.